package com.feicheng.persistence.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cailongyang
 * @since 2023-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "code")
    private String code;

    private String name;

    private String path;

    /**
     * M:菜单；P:页面；B:按钮；A:区域；D:详细
     */
    private String type;

    /**
     * 0：禁用; 1：启用;
     */
    @JsonProperty("aFlg")
    private Boolean aFlg;

    @JsonProperty("pCode")
    private String pCode;

    /**
     * 0: 不进菜单；1：进菜单；
     */
    private Boolean mFlg;

    private Integer sort;

    private String icon;

}
